package com.example.web.office_file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author LS
 * @since 2024-03-05
 */
@Getter
@Setter
@TableName("office_file")
@ApiModel(value = "OfficeDocument对象")
public class OfficeFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("文件名称")
    private String fileName;

    @ApiModelProperty("文件类型")
    private String fileType;

    @ApiModelProperty("文件大小")
    private Long fileSize;

    @ApiModelProperty("当前文件（夹）所在的父目录")
    private String curDir;

    @ApiModelProperty("文件位置")
    private String fileLocation;

    @ApiModelProperty("文件后缀")
    private String fileExtension;

    @ApiModelProperty("是否是目录")
    private Integer isDir;

    @ApiModelProperty("是否被删除")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("过期时间")
    private Date expiredTime;

    @ApiModelProperty("创建者")
    private String creator;


}
